home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / styleview.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-08-13  |  1.2 KB  |  51 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7.  
  8. #ifndef STYLEVIEW_H
  9. #define STYLEVIEW_H
  10.  
  11. #include <QTreeWidget>
  12.  
  13.  
  14. class StyleView : public QTreeWidget
  15. {
  16.     Q_OBJECT
  17. public:
  18.     StyleView(QWidget *parent);
  19. //     ~StyleView();
  20. protected:
  21. //     void contentsMousePressEvent(QMouseEvent *e);
  22. //     void mousePressEvent(QMouseEvent * event);
  23. //     void contentsMouseDoubleClickEvent(QMouseEvent *e);
  24.     void drawRow(QPainter *painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
  25. };
  26.  
  27.  
  28. class StyleViewItem : public QTreeWidgetItem
  29. {
  30. public:
  31.     StyleViewItem(QTreeWidget *parent, const QString &text);
  32.     StyleViewItem(QTreeWidgetItem *parent, const QString &text, const QString &rootName);
  33. //     ~StyleViewItem();
  34.  
  35. //     void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int align);
  36.  
  37.     bool isRoot();
  38.     QString parentName();
  39.     QString rootName();
  40.     void setDirty(bool isDirty);
  41.     bool isDirty();
  42.  
  43. private:
  44.     bool isRoot_;
  45.     bool isDirty_;
  46.     QString parentName_;
  47.     QString rootName_;
  48. };
  49.  
  50. #endif
  51.